home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / oleo-1_4.lha / oleo-1.4 / sysdef.h < prev    next >
C/C++ Source or Header  |  1993-05-21  |  4KB  |  168 lines

  1. #ifndef SYSDEFH
  2. #define SYSDEFH
  3. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this software; see the file COPYING.  If not, write to
  17. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18. /*  t. lord    Sun Aug  9 22:03:36 1992    */
  19.  
  20.  
  21.  
  22.  
  23. #include <sys/types.h>
  24. #ifdef HAVE_SYS_TIME_H
  25. #include <sys/time.h>
  26. #endif
  27. #ifdef HAVE_SYS_SELECT_H
  28. #include <sys/select.h>
  29. #endif
  30. #include <sys/stat.h>
  31.   
  32. #ifdef HAVE_UNISTD_H
  33. #include <unistd.h>
  34. #else
  35. #ifdef __STDC__
  36. extern int access (char *, int);
  37. extern int getuid (void);
  38. #endif
  39. #endif /* HAVE_UNISTD_H */
  40.  
  41. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  42. #include <string.h>
  43. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  44. #if !defined(STDC_HEADERS) && HAVE_MEMORY_H
  45. #include <memory.h>
  46. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  47. #ifndef index
  48. #define index strchr
  49. #endif
  50. #ifndef rindex
  51. #define rindex strrchr
  52. #endif
  53. #ifndef bcopy
  54. #define bcopy(s, d, n) memcpy ((d), (s), (n))
  55. #endif
  56. #ifndef bcmp
  57. #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
  58. #endif
  59. #ifndef bzero
  60. #define bzero(s, n) memset ((s), 0, (n))
  61. #endif
  62. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  63. #include <strings.h>
  64. /* memory.h and strings.h conflict on some systems.  */
  65. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  66.  
  67.  
  68. #ifdef STDC_HEADERS
  69. #include <stdlib.h>
  70. #endif
  71. #include <math.h>
  72. #include <time.h>
  73. #include <signal.h>
  74.  
  75. #ifdef atarist
  76. #undef SIGIO
  77. #ifndef EWOULDBLOCK
  78. #define EWOULDBLOCK (-1)
  79. #endif
  80. #endif
  81.  
  82. #ifndef HAVE_STRFTIME
  83. #ifdef __STDC__
  84. extern size_t strfntime (char *, int, char * format, struct tm *);
  85. #else
  86. extern size_t strfntime ();
  87. #endif
  88. #endif
  89.  
  90. #ifndef HAVE_MKTIME
  91. #ifdef __STDC__
  92. extern time_t mktime (struct tm *);
  93. #else
  94. extern time_t mktime ();
  95. #endif
  96. #endif
  97.  
  98. #ifdef __STDC__
  99. extern struct tm * localtime (const time_t *);
  100. extern struct tm * gmtime (const time_t *);
  101. #else
  102. extern struct tm * localtime ();
  103. extern struct tm * gmtime ();
  104. #endif
  105.  
  106. #ifdef __STDC__
  107. #if 0                /* Hopefully these aren't necessary. */
  108. extern int gethostname (char *, int);
  109. extern int atoi (const char *);
  110. #endif
  111. extern char *getenv (const char *);
  112.  
  113. #ifndef HAVE_STRDUP
  114. extern char *strdup (const char *);
  115. #endif
  116. #ifndef HAVE_STRICMP
  117. extern int stricmp (const char *, const char *);
  118. #endif
  119. #ifndef HAVE_STRINCMP
  120. extern int strincmp (const char *, const char *, size_t);
  121. #endif
  122. #ifndef HAVE_STRSTR
  123. extern char *strstr (const char *, const char *);
  124. #endif
  125.  
  126. #else  /* !defined(__STDC__) */
  127.  
  128. #ifndef HAVE_STRDUP
  129. extern char *strdup ();
  130. #endif
  131. #ifndef HAVE_STRSTR
  132. extern char *strstr ();
  133. #endif
  134.  
  135. #endif /* !defined(__STDC__) */
  136.  
  137. extern char *getenv ();
  138.  
  139. #ifndef RETSIGTYPE
  140. #define RETSIGTYPE void
  141. #endif /* RETSIGTYPE */
  142.  
  143. #ifndef VOIDSTAR
  144. #define VOIDSTAR void *
  145. #endif
  146.  
  147. #ifndef __STDC__
  148. #define volatile
  149. #endif
  150.  
  151. #if defined(USE_DLD) && 0
  152. extern int dld_errno;
  153. extern int dld_nerr;
  154. extern char *dld_errlst[];
  155. extern dld_undefined_sym_count;
  156. extern char *dld_search_path;
  157. extern void (*dld_get_func())();
  158. extern int dld_unlink_by_file EXT2(char *,int);
  159. extern int dld_link EXT1(char *);
  160. extern int dld_function_executable_p EXT1(char *);
  161. extern int dld_init EXT1(char *);
  162. extern char *dld_find_executable EXT1(char *);
  163. extern char ** dld_list_undefined_sym EXT0();
  164. #endif
  165.  
  166.  
  167. #endif
  168.